import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon'// svg component

// 全局注册组件 <svg-icon :icon-class="xx"></svg-icon>
Vue.component('svg-icon', SvgIcon)

// 批量注册小图标
const req = require.context('./svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
